<script>on mouseUpglobal globalChunk,globalFld,globalTextlock messageslock screenset the cursor to busyput the selectedText of the target into theActionif ("$*$" is in "$" & theAction & "$") thenanswer "This function is achieved by a key combination."else if (theAction is "Create New Directory") thengo bg "3"send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCardelse if (theAction is "Create New List") thengo bg "2"send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCardelse if (theAction is "Create New Mailbox") thenput createMailbox() into nullelse if (theAction is "Create New Message") thenput createMessage() into nullelse if (theAction is "Create New Object") thengo bg "2"send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCardelse if (theAction is "Dial Telephone Number") thenput dialTelephone() into nullelse if (theAction is "File into Mailbox") thenput fileMailbox() into nullelse if (theAction is "Flip Ascending/Descending") thenput flipThem(bg fld "Flip") into nullelse if (theAction is "Flip Envelope/Content") thenput flipThem(bg fld "Flip") into nullelse if (theAction is "Flip Single/Double") thenput flipThem(bg fld "Flip") into nullelse if (theAction is "Format Mail") thenput formatMail() into nullelse if (theAction is "Go Index") thensend ("closeCard") to this cdgo cd "(Index)"send ("openCard") to this cdelse if (theAction is "Index Filter In") thenput indexFilter("in") into nullelse if (theAction is "Index Filter Out") thenput indexFilter("out") into nullelse if (theAction is "Install Handler") thenput installHandler(bg fld "Title") into nullelse if (theAction is "Make List") thenput makeList() into nullelse if (theAction is "Make Mail") thenput makeMail() into nullelse if (theAction is "Make Profile") thenput makeProfile() into nullelse if (theAction is "Make Read Only:Directory (Family)") thenput makeDirectory("Family") into nullelse if (theAction is "Make Read Only:Directory (Member)") thenput makeDirectory("Member") into nullelse if (theAction is "Make Read Only:Envelope") thenput makeEnvelope() into nullelse if (theAction is "Message-Passing Hierarchy Hide") thenput messageHierarchy("hide") into nullelse if (theAction is "Message-Passing Hierarchy Show") thenput messageHierarchy("show") into nullelse if (theAction is "Remove Space") thenput removeSpace() into nullelse if (theAction is "Remove Space (*All*)") thenpush cdrepeat with i = (the number of this cd + 1) to the number of cdsgo cd iput removeSpace() into nullend repeatpop cdelse if (theAction is "Show Credit") thenput showCredit() into nullelse if (theAction is "Sort Cards") thensort cds of this stack ascending international by the short name of this cdput "" into bg fld "Text"else if (theAction is "Today's Date") thenput todaysDate() & " | " into bg fld "Title"put setupCard() into nullelse if (theAction is "Update Index") thenput "" into bg fld "Text"send ("openCard") to this cdelse if (theAction is "Update Stack") thenput updateStack() into nullelse if (word 1 of theAction is "Text") thendelete word 1 of theActionselect globalChunkif ((globalChunk is "") or (word 2 of globalChunk > word 4 of globalChunk)) thenanswer "Selected text is empty."elseif (theAction is "> Add") thenput textShift("right",">",globalText) into the selectedChunkelse if (theAction is "> Remove") thenput textShift("left",">",globalText) into the selectedChunkelse if (theAction is "Do It") thensend (globalText) to HyperCardelse if (theAction is "Shift Left") thenput textShift("left"," ",globalText) into the selectedChunkelse if (theAction is "Shift Right") thenput textShift("right"," ",globalText) into the selectedChunkelse if (theAction is "Sort Ascending") thenput textSort("Ascending",globalText) into the selectedChunkset the scroll of globalFld to 0else if (theAction is "Sort Descending") thenput textSort("Descending",globalText) into the selectedChunkset the scroll of globalFld to 0else if (theAction is "ToDo Done") thenput textToDoDone(globalFld,globalText) into nullend ifend ifend ifunlock messagesunlock screenbeep 1end mouseUp</script>
</part>
<part>
<id>2</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <true /> </dontWrap>
<dontSearch> <true /> </dontSearch>
<sharedText> <true /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>0</left>
<top>16</top>
<right>512</right>
<bottom>32</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <true /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Courier</font>
<textSize>10</textSize>
<textStyle>plain</textStyle>
<textHeight>13</textHeight>
<name>Flip</name>
<script></script>
</part>
<part>
<id>3</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <false /> </lockText>
<rect>
<left>0</left>
<top>16</top>
<right>512</right>
<bottom>496</bottom>
</rect>
<style>scrolling</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Courier</font>
<textSize>10</textSize>
<textStyle>plain</textStyle>
<textHeight>13</textHeight>
<name>Text</name>
<script></script>
</part>
<part>
<id>4</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <false /> </lockText>
<rect>
<left>0</left>
<top>0</top>
<right>512</right>
<bottom>16</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Courier</font>
<textSize>10</textSize>
<textStyle>bold</textStyle>
<textHeight>13</textHeight>
<name>Title</name>
<script></script>
</part>
<content>
<layer>background</layer>
<id>1</id>
<text>Create New ListFlip Ascending/DescendingIndex Filter InIndex Filter OutRemove Space (*All*)Sort CardsUpdate Index</text>